import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {DelonFormModule, WidgetRegistry} from '@delon/form';
import {SysParamTreeSelectAlainComponent} from './sys-param-tree-select-alain.component';
import {NzSelectModule} from 'ng-zorro-antd';
import {FormsModule} from '@angular/forms';
import {SysParamTreeSelectModule} from '../sys-param-tree-select/sys-param-tree-select.module';


@NgModule({
    declarations: [
        SysParamTreeSelectAlainComponent
    ],
    imports: [
        CommonModule,
        DelonFormModule.forRoot(),
        NzSelectModule,
        FormsModule,
        SysParamTreeSelectModule
    ],
    exports: [
        SysParamTreeSelectAlainComponent
    ],
    entryComponents: [
        SysParamTreeSelectAlainComponent
    ]
})
export class SysParamTreeSelectAlainModule {
    constructor(widgetRegistry: WidgetRegistry) {
        widgetRegistry.register(SysParamTreeSelectAlainComponent.KEY, SysParamTreeSelectAlainComponent);
    }
}
